<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">

    <title>跳转提示</title>

    <style type="text/css">
        body {margin: 0px; padding:0px; font-family:"微软雅黑", Arial, "Trebuchet MS", Verdana, Georgia,Baskerville,Palatino,Times; font-size:1.1rem;}
        div{margin-left:auto; margin-right:auto;}
        a {text-decoration: none; color: #1064A0;}
        a:hover {color: #0078D2;}
        img { border:none; }
        h1,h2,h3,h4 {
            /*	display:block;*/
            margin:0;
            font-weight:normal;
            font-family: "微软雅黑", Arial, "Trebuchet MS", Helvetica, Verdana ;
        }
        h1{font-size:1.5rem; color:#0188DE; padding:20px 0px 10px 0px;}
        h2{color:#0188DE; font-size:1.1rem; padding:10px 0px 40px 0px;}

        #page{max-width:910px; width:80%; padding:20px 20px 40px 20px; margin-top:80px;}
        .button{width:180px; height:28px; margin-left:0px; margin-top:10px; background:#009CFF; border-bottom:4px solid #0188DE; text-align:center;}
        .button a{width:180px; height:28px; display:block; font-size:1.2rem; color:#fff; }
        .button a:hover{ background:#5BBFFF;}
    </style>

</head>
<body>


<div id="page" style="border-style:dashed;border-color:#e4e4e4;line-height:30px;">
    {{if eq .st 1}}
    <h1>恭喜 ... ...</h1>
    <h2>{{.message}}</h2>
    {{end}}
    {{if eq .st 0}}
    <h1>抱歉 ... ...</h1>
    <h2>{{.message}}</h2>
    {{end}}


    <font color="#666666">
        页面自动 <a id="href" href="{{.uri}}">跳转</a> 等待时间： <b id="wait" style="color: #ff0000;">3</b>
    </font><br /><br />

</div>


<script type="text/javascript">
    (function(){
        var wait = document.getElementById('wait'),href = document.getElementById('href').href;
        var interval = setInterval(function(){
            var time = --wait.innerHTML;
            if(time <= 0) {
                location.href = href;
                clearInterval(interval);
            };
        }, 1000);
    })();
</script>

</body>
</html>